package com.lianyi.commonsdk.util.security;

import com.lianyi.commonsdk.util.SPUtils;
import com.lianyi.commonsdk.util.SPUtilsName;

/**
 * Created by leilei on 2018/7/23.
 */

public class RsaUtils {
    /**
     * Rsa解密
     *
     * @param mdate
     * @return
     */
    public static String ResDecode(String mdate) {
        String key = SPUtils.getInstance(SPUtilsName.HOSPITAL_TABLE).getString(SPUtilsName.HOSPITAL_RSA);
        key = key.replace("\n", "\r");
        mdate = RSAEncryptor.encryptByPublic(mdate, key);
        return mdate;
    }
}
